<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;
use Largezhou\WechatMenu\Content;

class WechatManagerController extends Controller
{
    public function menusManager()
    {
        return view(
            'wechat-menu',
            [
                'title' => '微信菜单管理',
                'content' => Content::renderMenusEditor(),
            ]
        );
    }

    public function menuEventsManager()
    {
        return view(
            'wechat-menu',
            [
                'title' => '自定义菜单事件处理配置',
                'content' => Content::renderMenuEventsSetting(),
            ]
        );
    }

    public function otherEventsManager()
    {
        return view(
            'wechat-menu',
            [
                'title' => '其他事件处理配置',
                'content' => Content::renderOtherEventsSetting(),
            ]
        );
    }

    public function wechatMenu()
    {
        return view(
            'wechat-menu',
            [
                'title' => '公众号管理',
                'content' => Content::renderWechatMenu(),
            ]
        );
    }
}
